function initLoading() {
	var wid = $(window).width();
	var hei = $(window).height();
	$("#startingCover").css({
		width : wid,
		height : hei,
		'display' : 'block',
		'background' : 'none repeat scroll 0 0 #B4D9F1',
		left : 0,
		'overflow' : 'hidden',
		'position' : 'absolute',
		top : 0,
		'z-index' : 100000
	});
}
//超时时间设置
var portalTimeout = setTimeout(function() {
	timeoutConfirm();
}, 50000);
function timeoutConfirm(msg) {//超时时间函数设计
	msg = msg || "系统长时间未响应，是否刷新重试？";
	clearTimeout(portalTimeout);
	portalTimeout = null;
	if (window.confirm(msg)) {
		window.location.reload();
		return true;
	} else {
		return false;
	}
}
/**
 * @param obj 需要放大的对象
 * @param width 放大的最大宽度
 * @param height 放大的最大高度
 */
function zoomIn(obj,width,height){
	obj.css({
		width:0,
		height:0,
		left:$(window).width()/2,
		top:$(window).height()/2
	});
	obj.animate({
	  width: width,
	  height: height,
	  left:$(window).width()/2-width/2,
	  top:$(window).height()/2-height/2-64/2
	}, 800 );
	if(obj.is(":animated")){
		sleep(800);
	}
}
function sleep(numberMillis) { 
	   var now = new Date();
	   var exitTime = now.getTime() + numberMillis;  
	   while (true) { 
	       now = new Date(); 
	       if (now.getTime() > exitTime)    return;
	    }
}
/**
 * @param obj 需要缩小的对象
 */
function zoomOut(obj){
	obj.animate({
		width:0,
		height:0,
		left:$(window).width()/2,
		top:$(window).height()/2
	}, 800 );
	
}